﻿using System;

namespace Framework.Validation
{
    /// <summary>
    /// Declare interface for validating objects.
    /// </summary>
    public interface IValidator
    {
        /// <summary>
        /// Validates the validatable object.
        /// </summary>
        /// <param name="validatable">The validatable object.</param>
        /// <returns>The <see cref="IValidationResults" /> instance</returns>
        IValidationResults Validate(object validatable);
    }
}
